<div ng-controller="DeskCtrl" ng-init="listAction()" class="sui-form form-horizontal">
    <ul class="sui-breadcrumb">
        <li><a href="#">餐桌布局</a></li>
        <li class="active"> {{'列表' | translate}}
        </li>
        <span class="sui-form sui-form pull-right"> 
            
        </span>
    </ul>
    <div class="sui-form form-horizontal">
        <div class="control-group">
            <label class="control-label v-top">
            </label>
            <div class="controls">
                编号(唯一值):
                <input ng-model="desk.outer_id" type="text" name="name" value=""> 类型:
                <desk-type ng-model="desk.table_type_id" dft="1"></desk-type>
                <button ng-click="save()" class="sui-btn btn-success"> {{'保存' | translate}}</button>
                <button ng-click="Delete(desk.table_id)" class="sui-btn btn-danger" ng-show="desk.table_id"> {{'删除' | translate}}</button>
            </div>
        </div>
        <div>
            <table class="sui-table table-bordered">
                <tbody>
                    <tr style="height:150px;" ng-repeat="(vkey,table) in table_list">
                        <td ng-repeat="issub in table" ng-click="ChoiceTa(issub)" style="border:5px solid #e6e6e6;background:#8DEEEE; ">
                            <div ng-class="{'attachentImgChecked': desk.table_id == issub.table_id}">
                                <span>桌子编号:</span> {{issub.outer_id}}
                                <br/>
                                <span>餐桌类型:</span>
                                <desk-type ng-model="issub.table_type_id" stype="1"></desk-type>
                                <br/>
                                <span>
                                <!-- <wx-qrcode stype="'TABl'"  id="issub.outer_id" title="二维码"></wx-qrcode> -->
                                <wx-path-qrcode  id="issub.outer_id" ></wx-path-qrcode>
                                </span>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <!--  <div class="sui-form form-horizontal">
        <div class="controls">
            <a ng-click="addDeskData()"> +{{'新增区域' | translate}}</a>
        </div>
        <div class="control-group" ng-repeat="(k,value) in deskData">
            <label class="control-label v-top">
            </label>
            <div class="controls">
                区域名称：
                <region ng-model="value.region"></region>
                行数：
                <input ng-model="value.row" type="number" name="name" value="" class="input-mini"> 列数：
                <input ng-model="value.col" type="number" name="name" value="" class="input-mini">
                <button ng-click="generateData(value.region)" class="sui-btn btn-success"> {{'生成布局' | translate}}</button>
                <button ng-click="delData(k,value.region)" class="sui-btn btn-danger"> {{'删除' | translate}}</button>
            </div>
        </div>

        <div ng-repeat="value in dataList">
            区域名称： {{value.region}}
            <table class="sui-table table-bordered">
                <tbody>
                    <tr style="height:150px;" ng-repeat="(vkey,isv) in value.data">
                        <td style="border:5px solid #e6e6e6;background:#8DEEEE; " ng-repeat="issub in isv">
                            <span>桌子编号:</span>
                            <input ng-model="issub.outer_id" type="text" name="name" value="" class="input-small" ng-blur="upzid(value.region,issub.sort,issub.outer_id,vkey,issub,$event)">
                           
                            <br/>
                            <span>餐桌类型:</span>
                            <desk-type ng-model="issub.table_type_id" dft="1"></desk-type>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <button ng-click="save()" class="sui-btn btn-success"> {{'保存' | translate}}</button>
    </div> -->
</div>